# Contributor: Alex McGrath <amk@amk.ie>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-stringcase
_pkgname=stringcase
pkgver=1.2.0
pkgrel=8
pkgdesc="Convert string cases between camel case, pascal case, snake case etc..."
url="https://pypi.org/project/stringcase"
arch="noarch"
license="MIT"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
subpackages="$pkgname-pyc"
source="stringcase-$pkgver.tar.gz::https://pypi.io/packages/source/s/stringcase/stringcase-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check" # no tests

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	gpep517 install-wheel --destdir "$pkgdir" \
		.dist/*.whl
}

sha512sums="
c987f9aa42d22bcfaa6559791bf9292e4300af00d2cf2165838cacd6203b913da197852d49285c30188ca529fd529513cce73a1984f5555cfb81e704977786d3  stringcase-1.2.0.tar.gz
"
